<%-- 
    Document   : transition
    Created on : Nov 14, 2012, 1:32:18 PM
    Author     : user1
--%>

<%@ taglib uri="/struts-tags" prefix="s" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
<%--         <script type="text/javascript" src="${pageContext.request.contextPath}/Js/jquery-1.8.2.js"></script> --%>
<%--         <script type="text/javascript" src="${pageContext.request.contextPath}/Js/transition/transition.js"></script> --%>
<%--         <script type="text/javascript" src="${pageContext.request.contextPath}/Js/transition/demo.js"></script> --%>

<%--         <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/estilo.css" /> --%>
<%--         <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/stylSergio.css" /> --%>
<%--         <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/transition/transition.css"/> --%>
<!--               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -->
        <title>Transition</title>
    </head>
    <body>
        <div style="position: fixed; top: 0; z-index: 1; left:9%;">
            <s:div cssClass="divBlancoMenor"></s:div>
            <s:div cssClass="contenidoAzul">
                <jsp:include page="/jsp/encabezado.jsp" flush="true" />
                <jsp:include page="/jsp/menu.jsp" flush="true" />
            </s:div>
        </div>
        </br>
        </br>
        </br>
        </br>
        </br>
        </br>
        <div class="contenidoInformacion">
            </br>
            </br>
            <table border="0" align="center">
                <tr>
                    <td>
                        <fieldset class="fsclientInfo">
                            <legend>Client Information</legend>
                            <table class="actually">
                                <tr>  
                                    <td>
                                        <s:textarea class="areaTexto" id="" name="" cols="25"  
                                                    readonly="true" value="%{ClientInfo}" >
                                        </s:textarea>
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </td>
                    <td>
                        <fieldset class="fsifOwner">
                            <legend>If Owner Information</legend>
                            <table class="actually">
                                <tr>  
                                    <td>
                                        <s:textarea class="areaTexto" id="" name="" cols="25"  
                                                    readonly="true" value="%{CorreoIfOwnerInfo}" >
                                        </s:textarea>
                                    </td>
                                </tr>
                            </table>                                    
                        </fieldset>  
                    </td>
                    <td>
                        <fieldset class="fstransitionStatus">
                            <legend>Transition Status</legend>
                            <s:form action="statusChange" >
                                <s:select align ="center" list="statusList" name="status"  headerKey="0" headerValue="%{statusselected}" theme="simple">
                                </s:select>
                                </br></br></br>
                                <s:if test="%{#session.usuarioSession.tra == true}">
                                    <s:submit align ="center" value="Save" method="insertStatus" theme="simple"/>     
                                </s:if>
                                <s:else>
                                    <s:submit align ="center" value="Save" method="insertStatus" disabled="true" theme="simple"/>
                                </s:else>
                            </s:form>
                        </fieldset>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left" valign="top">
                        <fieldset id="fsoperationsInfo" class="fsoperationsInfo"> 
                            <legend>Operations Information</legend>
                            <s:form  id="opinfo" method="post" name="opinfo" theme="simple">
                                <table class="listado">
                                    <tr>         
                                        <th style="width: 27px"><s:text name="ID" /></th>
                                        <th style="width: 27px"><s:text name="BF" /></th>
                                        <th style="width: 27px"><s:text name="Name" /></th>
                                        <th style="width: 27px"><s:text name="Email" /></th>
                                        <th style="width: 27px"><s:text name="Telephone" /></th>
                                        <th style="width: 27px"><s:text name="Delete" /></th>
                                    </tr>                   
                                    <s:iterator var="opinfo" value="detallesPersonD"  status="rowstatus"> 
                                        <tr>
                                            <td><s:property value="id" /></td>
                                            <td><s:property value="bf" /></td>
                                            <td><s:property value="name" /></td>
                                            <td><s:property value="email" /></td>
                                            <td><s:property value="phone" /></td>
                                            <td>
                                                <s:if test="%{#session.usuarioSession.tra == true}">
                                                    <s:a action="EliminaPTList"  cssClass="botonLink" method="EliminarListaDetallesPersonD"  >
                                                        <s:text name="Eliminar" />
                                                        <s:param value="id" name="detallesPersonD[%{#rowstatus.index}].id"/>                                           
                                                        <s:param value="%{#rowstatus.index}" name="index"/>                                           
                                                    </s:a>
                                                </s:if>
                                            </td>
                                        </tr>
                                    </s:iterator>             
                                </table>
                                <s:if test="%{#session.usuarioSession.tra == true}">
                                    <s:submit id="add"  type="button" value="Add" cssClass="botonLink"  onclick="return muestraPopupNew();"/>
                                </s:if>
                                <s:else>
                                    <s:submit id="add"  type="button" value="Add" cssClass="botonLink"  onclick="return muestraPopupNew();" disabled="true"/>
                                </s:else>                             
                            </s:form>  
                        </fieldset> 
                    </td>
                    <td align="right" rowspan="1" valign="top">
                        <fieldset class="fsattachment">
                            <legend>Attachments</legend>
                            <s:fielderror cssClass="errorAction" />
                            <s:form action="savevobo" id="downAttach" style="display:in-line;" name="frmAttach" theme="simple">
                                <table border="0">
                                    <tr>
                                        <td>Customer profile: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                        <td><s:checkbox name="box1" id="box1" theme="simple" /></td>
                                        <td>VoBo &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                        <td><s:submit id="downloadCF" value="Download"  method="downFtp1" cssStyle="font-size:11px;" theme="simple"/></td>
                                        <s:textfield name="s1" value="customer_profile" cssClass="oculto"/>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <s:if test="existe1==true">
                                                <label class="errorAction" id="file1">Este archivo ya fue cargado</label>
                                            </s:if>
                                        </td>
                                    </tr>
                                    <tr align="left">
                                        <td>RFC:</td>
                                        <td><s:checkbox name="box2" id="box2" theme="simple" /> </td>
                                        <td>VoBo</td>
                                        <td><s:submit  value="Download" name="s2" method="downFtp2" cssStyle="font-size:11px;" theme="simple"/></td>
                                        <s:textfield name="s1" value="rfc" cssClass="oculto"/>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <s:if test="existe2==true">
                                                <label class="errorAction" id="file1">Este archivo ya fue cargado</label>
                                            </s:if>
                                        </td>
                                    </tr>
                                    <tr align="left">
                                        <td>R1:</td>
                                        <td><s:checkbox name="box3" id="box3" theme="simple" /></td>
                                        <td>VoBo</td>
                                        <td><s:submit value="Download" name="s3" method="downFtp3" cssStyle="font-size:11px;" theme="simple"/></td>
                                        <s:textfield name="s1" value="r1" cssClass="oculto"/>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <s:if test="existe3==true">
                                                <label class="errorAction" id="file1">Este archivo ya fue cargado</label>
                                            </s:if>
                                        </td>
                                    </tr>
                                    <tr align="left">
                                        <td>R2:</td>
                                        <td><s:checkbox name="box4" id="box4" theme="simple"/></td>
                                        <td>Vobo</td>
                                        <td><s:submit value="Download" name="s4"  method="downFtp4" cssStyle="font-size:11px;" theme="simple"/></td>
                                        <s:textfield name="s1" value="r2" cssClass="oculto"/>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <s:if test="existe4==true">
                                                <label class="errorAction" id="file1">Este archivo ya fue cargado</label>
                                            </s:if>
                                        </td>
                                    </tr>
                                    <tr align="left">
                                        <td>Minimum Selling Rates:</td>
                                        <td><s:checkbox name="box5" id="box5" theme="simple" /></td>
                                        <td>VoBo</td>
                                        <td><s:submit value="Download" name="s5"  method="downFtp5" cssStyle="font-size:11px;" theme="simple"/></td>
                                        <s:textfield name="s1" value="msr" cssClass="oculto"/>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <s:if test="existe5==true">
                                                <label class="errorAction" id="file1">Este archivo ya fue cargado</label>
                                            </s:if>
                                        </td>
                                    </tr>
                                    <tr align="left">
                                        <td>Sales Quotation:</td>
                                        <td><s:checkbox name="box7" id="box7" theme="simple"/></td>
                                        <td>VoBo</td>
                                        <td><s:submit value="Download" name="s7" method="downFtp6" cssStyle="font-size:11px;" theme="simple" /></td>
                                        <s:textfield name="s1" value="sales_quotation" cssClass="oculto"/>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <s:if test="existe6==true">
                                                <label class="errorAction" id="file1">Este archivo ya fue cargado</label>
                                            </s:if>
                                        </td>
                                    </tr>
                                    <tr align="left">
                                        <td>Rate Tracker:</td>
                                        <td><s:checkbox name="box6" id="box6" theme="simple"/></td>
                                        <td>VoBo</td>
                                        <td><s:textfield id="ratetrackertextidform" name="transitionBean.ratetrackertext" cssClass="txtInputsFormatRO" size="4" theme="simple"/></td>
                                    </tr>
                                    <tr align="left">
                                        <td>ACON Debtor Number:</td>
                                        <td><s:checkbox name="box8" id="box8" theme="simple"/></td>
                                        <td>VoBo</td>
                                        <td><s:textfield id="acondebtornumbertextidform" name="transitionBean.acondebtornumbertext" cssClass="txtInputsFormatRO" size="4" theme="simple"/></td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="center">
                                            </br>
                                            <s:if test="%{#session.usuarioSession.tra == true}">
                                                <s:submit type="button" class="toolbarButton" method="insertCheckboxes" value="Save All VoBo" theme="simple"/>
                                            </s:if>
                                            <s:else>
                                                <s:submit type="button" class="toolbarButton" method="insertCheckboxes" value="Save All VoBo" disabled="true" theme="simple"/>
                                            </s:else>    
                                        </td>
                                    </tr>
                                </table>                    
                            </s:form>
                        </fieldset>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" rowspan="2">
                        <fieldset class="fsTransitionLog">
                            <legend>Transition Log</legend>
                            <s:form action="downPdf" id="downPdf" name="downPdf" cssClass="frmPdf" theme="simple">
                                <table>
                                    <tr> 
                                        <td>
                                            <s:textarea class="areaTexto" id="" name="TransitionBean.Tlog"  
                                                        cols="75" rows="30" readonly="true" value="%{datos}" theme="simple">
                                            </s:textarea>
                                            </br></br></br>
                                            <s:submit type="button" class="toolbarButton" method="GenerarReportePDF" value="Download to PDF" theme="simple"/>
                                        </td>
                                    </tr>
                                </table>  
                            </s:form>
                        </fieldset>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <fieldset class="fsInsertCommentLog">
                            <legend>Add Comment (Transition Log)</legend>
                            <s:form action="sendComment" method="post" id="sendComment" name="sendComment" cssClass="frmAddCommentLog" theme="simple">
                                <table>
                                    <tr>
                                        <td>                               
                                            <s:textarea class="areaTexto" id="insert_comment" value="" 
                                                        name="transitionBean.Tlog"  cols="32" rows="16" theme="simple">
                                            </s:textarea>
                                            </br></br></br>
                                            <s:if test="%{#session.usuarioSession.tra == true}">
                                                <s:submit type="button" class="" value="Send" method="insertComment" theme="simple"/>
                                            </s:if>
                                            <s:else>
                                                <s:submit type="button" class="" value="Send" method="insertComment" disabled="true" theme="simple"/>
                                            </s:else>
                                        </td>
                                    </tr>
                                </table>
                            </s:form>   
                        </fieldset>
                    </td>
                </tr>
            </table>

            <div id="ventanaPopup1">
                <a id="ventanaPopup1Cerrar">Close</a>

                <h1 align="center">Data Personal</h1>
                <s:form action="ActionvalidarNameP"  cssClass="continuos_div_form" >

                    <s:select  list="personList"  name="person" onchange="validaNombre();" headerKey="0" headerValue="Personal"/> 
                    <s:submit id="submitValidaP" method="AgregayValidaNamePersonalM" value="Add" cssClass="oculto" cssStyle="position:relative; left:-50% ; top:-50%" />     
                </s:form>   


                <s:form action="ActionvalidarNamePTList"  cssClass="continuos_div_form" >

                    <s:textfield name="pb.name" value="" label="Name" size="10"  cssStyle="text-align:center; width:190px;" cssClass="texfieldFormat" />

                    <s:textfield name="pb.bf" value="" label="BF"  size="0" cssStyle="text-align:center; width:180px;" />
                    <s:textfield name="pb.email" value="" label="Email" size="10" cssStyle="text-align:center; width:180px;" />
                    <s:textfield name="pb.phone" value="" label="Telephone" size="10" cssStyle="text-align:center; width:180px;" />

                    <s:submit id="submitValidaPT" method="validaNamePersonalMExiste" value="Add" cssClass="" cssStyle="position:relative; left:-50% ; top:-50%" />
                    <s:reset value="Clean" cssClass="button" cssStyle="position:relative; left:-50% ; top:20%;"/>        
                </s:form>       
            </div>
            <div id="ventanaPopup1Fondo"></div>        
        </div>
    </body>
</html>
